package com.qiuling.iot.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author：zhangqiang
 * @Description：
 * @Date：Created in 1:46 2020/2/10
 * @Modified By：
 */
public class CustomUsernamePasswordToken extends UsernamePasswordToken {

    private String token;

    public CustomUsernamePasswordToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }
}
